 // 单选

import React, { Component } from 'react';
import { Form, Input } from 'antd';
import './modal.css';
import PropTypes from 'prop-types';



class SaveDocData extends Component {
  
  static propTypes = {
    setForm: PropTypes.func.isRequired,
  };

  formRef = React.createRef();

  componentDidMount() {
    this.props.setForm(this.formRef);
  }

  render() {
    return (
      <Form 
        ref={this.formRef}   
        name="control-ref" 
        onFinish={this.onFinish}  
      > 
        <p>文件名称</p>   
        <Form.Item 
          name="doc_name" 
          rules={[{ required: true }]}
        >
          <Input />
        </Form.Item>
      </Form>
    );
  }
}

export default SaveDocData;